CMAKE_MINIMUM_REQUIRED (VERSION 3.0)

PROJECT(TEST1)

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)
# 头文件路径
FILE(GLOB SOURCES "./src/*.cpp")
# 源文件路径
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
# 设置输出程序所在路径



add_executable(OutProgram ${SOURCES} main.cpp)
# 生成程序


# find_library(PYTHON312_D_LIBRARY python312_d PATHS ${PROJECT_SOURCE_DIR}/lib NO_DEFAULT_PATH)
# if(NOT PYTHON312_D_LIBRARY)
#     message(FATAL_ERROR "Python 3.12 library not found!")
# endif()

# 然后，我们将这个变量传递给 target_link_libraries 来链接库
# target_link_libraries(OutProgram ${PYTHON312_D_LIBRARY})